package org.tarena.dang.entity;

import java.text.SimpleDateFormat;

public class Book extends Product {

	private static final long serialVersionUID = 1L;
	private int id;
	private String author;
	private String publish;
	private long publishTime;
	private String publishing;
	//增加字段
	private int pnum;//销量

	
	public int getPnum() {
		return pnum;
	}
	public void setPnum(int pnum) {
		this.pnum = pnum;
	}
	public String getPublishDTime(){
		return new SimpleDateFormat("yyyy-MM-dd").format(publishTime); 
	}
	public String getPublishing() {
		return publishing;
	}
	public void setPublishing(String publishing) {
		this.publishing = publishing;
	}
	private String wordNumber;
	private int whichEdtion;
	private int page;
	private String isbn;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPublish() {
		return publish;
	}
	public void setPublish(String publish) {
		this.publish = publish;
	}
	public long getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(long publishTime) {
		
		this.publishTime = publishTime;
	}
	public String getWordNumber() {
		return wordNumber;
	}
	public void setWordNumber(String wordNumber) {
		this.wordNumber = wordNumber;
	}
	public int getWhichEdtion() {
		return whichEdtion;
	}
	public void setWhichEdtion(int whichEdtion) {
		this.whichEdtion = whichEdtion;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public String getIsbn() {
		return isbn;
	}
	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}
	public String getAuthorSummary() {
		return authorSummary;
	}
	public void setAuthorSummary(String authorSummary) {
		this.authorSummary = authorSummary;
	}
	private String authorSummary;
	
}
